@extends('layouts.auth')

@section('title', '会员登陆')

@section('content')
<div class="mx-3 py-5">
    <div class="text-primary mb-4 text-center">
        <h4>虫带米囊，花含玉蕊。</h4>
    </div>
    <div class="card mx-auto text-dark bg-white" style="max-width: 31.25rem;">
        <h5 class="card-header bg-white py-3"><i class="bi bi-person-fill me-1"></i>{{ $title }}</h5>
        <div class="card-body">
            @include('shared.flash-messages')
            <form class="row m-4" action="{{ route('auth.login.post', ['accountType' => $accountType]) }}" method="post">
                @csrf
                <div class="col-12 mb-3">
                    <input class="form-control" name="email" type="text" placeholder="请输入邮箱" autocomplete="off" aria-label="请输入邮箱">
                </div>
                <div class="col-12 mb-4">
                    <input class="form-control" name="password" type="password" placeholder="请输入密码" autocomplete="off" aria-label="请输入密码">
                </div>
                <div class="d-grid mb-3"><button class="btn btn-primary" type="submit">登录</button></div>

                <p class="text-muted text-center">您还不是{{ $systemConfig['site_name'] }}会员，<a class="btn btn-outline-primary btn-sm border-0" href="{{ route('auth.register', ['accountType' => $accountType]) }}" role="button">注册</a></p>
            </form>
        </div>
    </div>
</div>
@endsection
